<!doctype html>
<html class="no-js">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>EntityCache</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg">    <script>var pathToRoot = "../../../";</script>
    <script>document.documentElement.classList.replace("no-js","js");</script>
    <script>const storage = localStorage.getItem("dokka-dark-mode")
    if (storage == null) {
        const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
        if (osDarkSchemePreferred === true) {
            document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
    } else {
        const savedDarkMode = JSON.parse(storage)
        if(savedDarkMode === true) {
            document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
    }
    </script>
<script type="text/javascript" src="https://unpkg.com/kotlin-playground@1/dist/playground.min.js" async></script>
<script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async></script>
<link href="../../../styles/style.css" rel="Stylesheet">
<link href="../../../styles/main.css" rel="Stylesheet">
<link href="../../../styles/prism.css" rel="Stylesheet">
<link href="../../../styles/logo-styles.css" rel="Stylesheet">
<link href="../../../styles/font-jb-sans-auto.css" rel="Stylesheet">
<script type="text/javascript" src="../../../scripts/clipboard.js" async></script>
<script type="text/javascript" src="../../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../../scripts/prism.js" async></script>
<script type="text/javascript" src="../../../scripts/symbol-parameters-wrapper_deferred.js" defer></script></head>
<body>
    <div class="root">
<nav class="navigation" id="navigation-wrapper">
    <div class="navigation--inner">
        <div class="navigation-title">
            <button class="menu-toggle" id="menu-toggle" type="button">toggle menu</button>
            <div class="library-name">
<a class="library-name--link" href="../../../index.html">
                            exposed
                    </a>            </div>
            <div class="library-version">0.57.0
            </div>
        </div>
        <div class="filter-section" id="filter-section">
                <button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":exposed-dao:dokkaHtmlPartial/main">jvm</button>
        </div>
    </div>
    <div class="navigation-controls">
        <button class="navigation-controls--btn navigation-controls--theme" id="theme-toggle-button" type="button">switch theme</button>
        <div class="navigation-controls--btn navigation-controls--search" id="searchBar" role="button">search in API</div>
    </div>
</nav>
        <div id="container">
            <div class="sidebar" id="leftColumn">
                <div class="sidebar--inner" id="sideMenu"></div>
            </div>
            <div id="main">
<div class="main-content" data-page-type="classlike" id="content" pageids="exposed-dao::org.jetbrains.exposed.dao/EntityCache///PointingToDeclaration//-358360235">
  <div class="breadcrumbs"><a href="../../index.html">exposed-dao</a><span class="delimiter">/</span><a href="../index.html">org.jetbrains.exposed.dao</a><span class="delimiter">/</span><span class="current">EntityCache</span></div>
  <div class="cover ">
    <h1 class="cover"><span>Entity</span><wbr><span><span>Cache</span></span></h1>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">EntityCache</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">transaction<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-transaction/index.html">Transaction</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Class responsible for the storage of <a href="../-entity/index.html">Entity</a> instances in a specific <a href="../../../exposed-dao/org.jetbrains.exposed.dao/-entity-cache/transaction.html">transaction</a>.</p></div></div>
  </div>
  <div class="tabbedcontent">
    <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div>
    <div class="tabs-section-body">
      <div data-togglable="CONSTRUCTOR">
        <h2 class="">Constructors</h2>
        <div class="table"><a data-name="1049727737%2FConstructors%2F-358360235" anchor-label="EntityCache" id="1049727737%2FConstructors%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-togglable="CONSTRUCTOR" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="-entity-cache.html"><span>Entity</span><wbr><span><span>Cache</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1049727737%2FConstructors%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">transaction<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-transaction/index.html">Transaction</a></span></span><span class="token punctuation">)</span></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div data-togglable="TYPE">
        <h2 class="">Types</h2>
        <div class="table"><a data-name="1290049825%2FClasslikes%2F-358360235" anchor-label="Companion" id="1290049825%2FClasslikes%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="-companion/index.html"><span><span>Companion</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1290049825%2FClasslikes%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">object </span><a href="-companion/index.html">Companion</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div data-togglable="PROPERTY">
        <h2 class="">Properties</h2>
        <div class="table"><a data-name="677102870%2FProperties%2F-358360235" anchor-label="data" id="677102870%2FProperties%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="data.html"><span><span>data</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="677102870%2FProperties%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">val </span><a href="data.html">data</a><span class="token operator">: </span><a href="https://docs.oracle.com/javase/8/docs/api/java/util/LinkedHashMap.html">LinkedHashMap</a><span class="token operator">&lt;</span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-id-table/index.html">IdTable</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token punctuation">, </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html">MutableMap</a><span class="token operator">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token operator">&gt;</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">The mapping of <a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-id-table/index.html">IdTable</a>s to associated <a href="../-entity/index.html">Entity</a> instances (as a mapping of entity id values to entities).</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="385258815%2FProperties%2F-358360235" anchor-label="maxEntitiesToStore" id="385258815%2FProperties%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="max-entities-to-store.html"><span>max</span><wbr><span>Entities</span><wbr><span>To</span><wbr><span><span>Store</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="385258815%2FProperties%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">var </span><a href="max-entities-to-store.html">maxEntitiesToStore</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></div><div class="brief "><p class="paragraph">The amount of entities to store in this <a href="index.html">EntityCache</a> per <a href="../-entity/index.html">Entity</a> class.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div data-togglable="FUNCTION">
        <h2 class="">Functions</h2>
        <div class="table"><a data-name="448666930%2FFunctions%2F-358360235" anchor-label="clear" id="448666930%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="clear.html"><span><span>clear</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="448666930%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><a href="clear.html"><span class="token function">clear</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">flush<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Clears this <a href="index.html">EntityCache</a> of all stored data, including any reference mappings.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="385074335%2FFunctions%2F-358360235" anchor-label="clearReferrersCache" id="385074335%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="clear-referrers-cache.html"><span>clear</span><wbr><span>Referrers</span><wbr><span><span>Cache</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="385074335%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><a href="clear-referrers-cache.html"><span class="token function">clearReferrersCache</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Clears this <a href="index.html">EntityCache</a> of stored data that maps cached parent entities to their referencing child entities.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-247865678%2FFunctions%2F-358360235" anchor-label="find" id="-247865678%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="find.html"><span><span>find</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-247865678%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="find.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="find.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="find.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="find.html"><span class="token function">find</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">f<span class="token operator">: </span><a href="../-entity-class/index.html">EntityClass</a><span class="token operator">&lt;</span><a href="find.html">ID</a><span class="token punctuation">, </span><a href="find.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">id<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-entity-i-d/index.html">EntityID</a><span class="token operator">&lt;</span><a href="find.html">ID</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="find.html">T</a><span class="token operator">?</span></div><div class="brief "><p class="paragraph">Searches this <a href="index.html">EntityCache</a> for an <a href="../-entity/index.html">Entity</a> by its <a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-entity-i-d/index.html">EntityID</a> value using its associated <a href="../-entity-class/index.html">EntityClass</a> as the key.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="678513966%2FFunctions%2F-358360235" anchor-label="findAll" id="678513966%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="find-all.html"><span>find</span><wbr><span><span>All</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="678513966%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="find-all.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="find-all.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="find-all.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="find-all.html"><span class="token function">findAll</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">f<span class="token operator">: </span><a href="../-entity-class/index.html">EntityClass</a><span class="token operator">&lt;</span><a href="find-all.html">ID</a><span class="token punctuation">, </span><a href="find-all.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html">Collection</a><span class="token operator">&lt;</span><a href="find-all.html">T</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Gets all <a href="../-entity/index.html">Entity</a> instances in this <a href="index.html">EntityCache</a> that match the associated <a href="../-entity-class/index.html">EntityClass</a>.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="362568962%2FFunctions%2F-358360235" anchor-label="flush" id="362568962%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="flush.html"><span><span>flush</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="362568962%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><a href="flush.html"><span class="token function">flush</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Sends all pending inserts and updates for all <a href="../-entity/index.html">Entity</a> instances in this <a href="index.html">EntityCache</a> to the database.</p></div><div class="symbol monospace"><span class="token keyword">fun </span><a href="flush.html"><span class="token function">flush</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">tables<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><span class="token operator">&lt;</span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-id-table/index.html">IdTable</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Sends all pending inserts and updates for <a href="../-entity/index.html">Entity</a> instances in this <a href="index.html">EntityCache</a> to the database.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1056819687%2FFunctions%2F-358360235" anchor-label="getOrPutReferrers" id="-1056819687%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-or-put-referrers.html"><span>get</span><wbr><span>Or</span><wbr><span>Put</span><wbr><span><span>Referrers</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1056819687%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="get-or-put-referrers.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="get-or-put-referrers.html">R</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="get-or-put-referrers.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="get-or-put-referrers.html"><span class="token function">getOrPutReferrers</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">sourceId<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-entity-i-d/index.html">EntityID</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">key<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-column/index.html">Column</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">refs<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-sized-iterable/index.html">SizedIterable</a><span class="token operator">&lt;</span><a href="get-or-put-referrers.html">R</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-sized-iterable/index.html">SizedIterable</a><span class="token operator">&lt;</span><a href="get-or-put-referrers.html">R</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Returns a <a href="../../../exposed-core/org.jetbrains.exposed.sql/-sized-iterable/index.html">SizedIterable</a> containing all child <a href="../-entity/index.html">Entity</a> instances that reference the parent entity with the provided <a href="get-or-put-referrers.html">sourceId</a> using the specified <a href="get-or-put-referrers.html">key</a> column.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="425160660%2FFunctions%2F-358360235" anchor-label="getReferrers" id="425160660%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-referrers.html"><span>get</span><wbr><span><span>Referrers</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="425160660%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="get-referrers.html">R</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="get-referrers.html"><span class="token function">getReferrers</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">sourceId<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-entity-i-d/index.html">EntityID</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">key<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-column/index.html">Column</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.sql/-sized-iterable/index.html">SizedIterable</a><span class="token operator">&lt;</span><a href="get-referrers.html">R</a><span class="token operator">&gt;</span><span class="token operator">?</span></div><div class="brief "><p class="paragraph">Returns a <a href="../../../exposed-core/org.jetbrains.exposed.sql/-sized-iterable/index.html">SizedIterable</a> containing all child <a href="../-entity/index.html">Entity</a> instances that reference the parent entity with the provided <a href="get-referrers.html">sourceId</a> using the specified <a href="get-referrers.html">key</a> column.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-274122452%2FFunctions%2F-358360235" anchor-label="remove" id="-274122452%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="remove.html"><span><span>remove</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-274122452%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="remove.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="remove.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="remove.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="remove.html"><span class="token function">remove</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">table<span class="token operator">: </span><a href="../../../exposed-core/org.jetbrains.exposed.dao.id/-id-table/index.html">IdTable</a><span class="token operator">&lt;</span><a href="remove.html">ID</a><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">o<span class="token operator">: </span><a href="remove.html">T</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Removes the specified <a href="../-entity/index.html">Entity</a> from this <a href="index.html">EntityCache</a> using its associated <a href="remove.html">table</a> as the key.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1807932031%2FFunctions%2F-358360235" anchor-label="scheduleInsert" id="-1807932031%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="schedule-insert.html"><span>schedule</span><wbr><span><span>Insert</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1807932031%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="schedule-insert.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="schedule-insert.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="schedule-insert.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="schedule-insert.html"><span class="token function">scheduleInsert</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">f<span class="token operator">: </span><a href="../-entity-class/index.html">EntityClass</a><span class="token operator">&lt;</span><a href="schedule-insert.html">ID</a><span class="token punctuation">, </span><a href="schedule-insert.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">o<span class="token operator">: </span><a href="schedule-insert.html">T</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Stores the specified <a href="../-entity/index.html">Entity</a> in this <a href="index.html">EntityCache</a> as scheduled to be inserted into the database.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="677088145%2FFunctions%2F-358360235" anchor-label="scheduleUpdate" id="677088145%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="schedule-update.html"><span>schedule</span><wbr><span><span>Update</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="677088145%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="schedule-update.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="schedule-update.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="schedule-update.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="schedule-update.html"><span class="token function">scheduleUpdate</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">f<span class="token operator">: </span><a href="../-entity-class/index.html">EntityClass</a><span class="token operator">&lt;</span><a href="schedule-update.html">ID</a><span class="token punctuation">, </span><a href="schedule-update.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">o<span class="token operator">: </span><a href="schedule-update.html">T</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Stores the specified <a href="../-entity/index.html">Entity</a> in this <a href="index.html">EntityCache</a> as scheduled to be updated in the database.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1646572610%2FFunctions%2F-358360235" anchor-label="store" id="-1646572610%2FFunctions%2F-358360235" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main"></a>
          <div class="table-row" data-filterable-current=":exposed-dao:dokkaHtmlPartial/main" data-filterable-set=":exposed-dao:dokkaHtmlPartial/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="store.html"><span><span>store</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1646572610%2FFunctions%2F-358360235"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":exposed-dao:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">fun </span><a href="store.html"><span class="token function">store</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">o<span class="token operator">: </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Stores the specified <a href="../-entity/index.html">Entity</a> in this <a href="index.html">EntityCache</a>.</p></div><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="store.html">ID</a><span class="token operator"> : </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token punctuation">, </span><a href="store.html">T</a><span class="token operator"> : </span><a href="../-entity/index.html">Entity</a><span class="token operator">&lt;</span><a href="store.html">ID</a><span class="token operator">&gt;</span><span class="token operator">&gt; </span><a href="store.html"><span class="token function">store</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">f<span class="token operator">: </span><a href="../-entity-class/index.html">EntityClass</a><span class="token operator">&lt;</span><a href="store.html">ID</a><span class="token punctuation">, </span><a href="store.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">o<span class="token operator">: </span><a href="store.html">T</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Stores the specified <a href="../-entity/index.html">Entity</a> in this <a href="index.html">EntityCache</a> using its associated <a href="../-entity-class/index.html">EntityClass</a> as the key.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
      <div class="footer">
        <span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2024 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
      </div>
            </div>
        </div>
    </div>
</body>
</html>

